<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>Login</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<script type="text/javascript" src="../js/jquery.min.js"></script>
</head>

<body>
	<form id="loginForm" action="<%=basePath%>login/doLogin" method="post">  
		<label>LOGIN_ACCOUNT</label> 
		<input tyep="text" name="loginAccount" /> 
		<label>LOGIN_PASS</label> 
		<input type="password" name="loginPass" /> 
		<input type="checkbox" name="rememberMe" />自动登录 
		<input type="submit" value="login" />  
	</form>
	<br>
	后台返回的信息：${msg}
</body>

<script type="text/javascript">
/* $(function(){
  	$.ajax({
		url : "../login/ajaxTest",
		type : "POST",
		dataType : "json",
		data : {"id":123, "name":"abc"},
		success : function(data) {
			alert(data.userName);
		},
		error : function(data) {
			console.log("This is Error");
		}
	});
}); */
</script>
</html>